package com.serviceImp;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dao.LocationMapper;
import com.model.Location;
import com.service.LocationService;

@Service
public class LocationServicelmp implements LocationService {
	@Autowired
	LocationMapper LocationMapper;

	@Override
	public int insertSelective(Location record) {
		return LocationMapper.insertSelective(record);
	}
	
	@Override
	public List<Location> selectAllPeopleLocation(){
		return LocationMapper.selectAllPeopleLocation();
	}
	
	@Override
	public int insert(Location record) {
		// TODO Auto-generated method stub
		return LocationMapper.insert(record);
	}
	@Override
	public int updateAllLocation(Location record){
		return LocationMapper.updateAllLocation(record);
	}
	@Override
	public Location selectCarByCarId(String openid){
		return LocationMapper.selectCarByCarId(openid);
	}
	@Override
	public Timestamp selectCarLastTime(String openid){
		return LocationMapper.selectCarLastTime(openid);
	}
	@Override
	public int updateSchoolBus(Location record){
		return LocationMapper.updateSchoolBus(record);
	}
	@Override
	public Location selectNewBus(Integer uId){
		return LocationMapper.selectNewBus(uId);
	}
	@Override
	public int deleteBusLocation(Integer uId){
		return LocationMapper.deleteBusLocation(uId);
	}
	@Override
	public int deleteAllPeopleLocation(Integer uId){
		return LocationMapper.deleteAllPeopleLocation(uId);
	}
	@Override
	public List<Location> selectUser(Integer uId){
		return LocationMapper.selectUser(uId);
	}
	
}
